package com.yupi.generator;

import cn.hutool.core.io.FileUtil;

import java.io.File;

/**
 * 静态文件生成器
 */
public class StaticGenerator {
    public static void main(String[] args) {
        String property = System.getProperty("user.dir");
        //输入路径
        String inputPath=property+File.separator+"yuzi-generator-demo"+ File.separator+"acm-template";
        System.out.println(inputPath);
        //输出路径
        String outputPath=property;
        //复制
        copyPath(inputPath,outputPath);
    }


    /**
     * 静态文件拷贝
     * @param inputFile 输入路径
     * @param outputFile 输出路径
     */
    public static void copyPath(String inputFile,String outputFile){
        FileUtil.copy(inputFile,outputFile,false);
    }
}
